package com.roger.ats.init.util;

import com.roger.uia.helper.UiBase;
import com.roger.uia.helper.util.FileUtils;

import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.Locale;

public class LogUtils {
    private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS", Locale.CHINA);

    public void printLog(String log){
        Date date = new Date(System.currentTimeMillis());
        String time = dateFormat.format(date);
        FileUtils.writeFile(UiBase.filePath+"ATS/logs/AtsLogs.txt",time+" "+ log);
    }

}
